﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Documents;
using System.Windows.Input;
using Caliburn.Micro;
using ThunderboltHelper;
using ThunderboltInterfaceSharp.Views.UserControls.Download;

namespace ThunderboltInterfaceSharp.ViewModels.UserControls.Download;

public class CompletedItemsViewModel : Screen
{
	//ObservableCollection替换为List方便排序
	public List<SingleCompletedItemViewModel> DownloadItemCollection { get; set; }
	/// <summary>
	/// 当前选中
	/// </summary>
	public SingleCompletedItemViewModel DownloadItem { get; set; }

	public CompletedItemsViewModel()
	{
		DownloadItemCollection = new List<SingleCompletedItemViewModel>();
		for (var i = 1; i < 10; i++)
		{
			DownloadItemCollection.Add(new SingleCompletedItemViewModel());
		}
		DownloadItem = DownloadItemCollection.First();
	}
	
}
